package matlap.database.dao;

import java.util.List;

import matlap.shared.Distributor;
import matlap.shared.exceptions.MyException;

public interface DistributorDAO {

	int getDistributorsNumber()throws MyException;

	List<Distributor> getDistributors();

	List<Distributor> selectDistributorsName();

	List<Distributor> getDistributorsByName(String name);

	void updateDistributors(String userName, String firstName, String lastName,
			String address);

	void deleteDistributors(String userName);

	Distributor getDistributorsByUserName(String userName);

	List<String> getUserNames();
}
